#include <iostream>
#include <SDL.h>
#include <SDL_opengl.h>
#include <fstream>
#include <iomanip>
#include "trace.h"

const int width = 800;
const int height = 600;

void InitSDL();

int main(int argc, char* argv[])
{

	Tracing trace("Intel", CL_DEVICE_TYPE_CPU);

	system("pause");


	/*InitSDL();

	SDL_Event keyEvent;
	bool mainLoop = true;

	while(mainLoop)
	{

		if(SDL_PollEvent(&keyEvent))
		{
			if(keyEvent.type == SDL_QUIT) mainLoop = false;
		}
		glClear(GL_COLOR_BUFFER_BIT);
		SDL_GL_SwapBuffers();
	}
	SDL_Quit();*/

	return 0;
}


void InitSDL()
{
	SDL_Init(SDL_INIT_EVERYTHING);
	SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
	SDL_WM_SetCaption("Raytracing", NULL);
	SDL_SetVideoMode(width, height, 32, SDL_OPENGL);
	glViewport(0, 0, width, height);
	glClearColor(1,1,1,1);
	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
}